package com.beiing.tianshuai.tianshuai.entity;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/**
 * Created by magikliu on 2017/7/17.
 */

public class FreshNewsListBean extends BaseBean implements Serializable {

    /**
     * code : 200
     * data : {"pic":[{"f_id":null,"app_image":"596b231131c7c.jpg","fink":"106"}],"fresh":[{"id":"113","title":"iPhone 8会越卖越贵","cover":"596c2dcf3d39a.png","view":"6","praise":"0","abstract":null,"name":"柳雅馨 ","unit":"哈尔滨师范大学"}]}
     */

    @SerializedName("code")
    private int code;
    @SerializedName("data")
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        @SerializedName("pic")
        private List<PicBean> pic;
        @SerializedName("fresh")
        private List<FreshBean> fresh;

        public List<PicBean> getPic() {
            return pic;
        }

        public void setPic(List<PicBean> pic) {
            this.pic = pic;
        }

        public List<FreshBean> getFresh() {
            return fresh;
        }

        public void setFresh(List<FreshBean> fresh) {
            this.fresh = fresh;
        }

        public static class PicBean {
            /**
             * f_id : null
             * app_image : 596b231131c7c.jpg
             * fink : 106
             */

            @SerializedName("f_id")
            private String fId;
            @SerializedName("app_image")
            private String appImage;
            @SerializedName("fink")
            private String fink;

            public String getFId() {
                return fId;
            }

            public void setFId(String fId) {
                this.fId = fId;
            }

            public String getAppImage() {
                return appImage;
            }

            public void setAppImage(String appImage) {
                this.appImage = appImage;
            }

            public String getFink() {
                return fink;
            }

            public void setFink(String fink) {
                this.fink = fink;
            }
        }

        public static class FreshBean implements Serializable{
            /**
             * id : 113
             * title : iPhone 8会越卖越贵
             * cover : 596c2dcf3d39a.png
             * view : 6
             * praise : 0
             * abstract : null
             * name : 柳雅馨
             * unit : 哈尔滨师范大学
             * photo : ****.jpg
             * is_thing
             */

            @SerializedName("id")
            private String id;
            @SerializedName("title")
            private String title;
            @SerializedName("cover")
            private String cover;
            @SerializedName("view")
            private String view;
            @SerializedName("praise")
            private String praise;
            @SerializedName("abstract")
            private String abstractX;
            @SerializedName("userid")
            private String userid;
            @SerializedName("name")
            private String name;
            @SerializedName("unit")
            private String unit;
            @SerializedName("photo")
            private String photo;
            @SerializedName("is_thing")
            private int is_thing;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getCover() {
                return cover;
            }

            public void setCover(String cover) {
                this.cover = cover;
            }

            public String getView() {
                return view;
            }

            public void setView(String view) {
                this.view = view;
            }

            public String getPraise() {
                return praise;
            }

            public void setPraise(String praise) {
                this.praise = praise;
            }

            public String getAbstractX() {
                return abstractX;
            }

            public void setAbstractX(String abstractX) {
                this.abstractX = abstractX;
            }

            public String getUserid() {
                return userid;
            }

            public void setUserid(String userid) {
                this.userid = userid;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getUnit() {
                return unit;
            }

            public void setUnit(String unit) {
                this.unit = unit;
            }

            public String getPhoto() {
                return photo;
            }

            public void setPhoto(String photo) {
                this.photo = photo;
            }

            public int getIs_thing() {
                return is_thing;
            }

            public void setIs_thing(int is_thing) {
                this.is_thing = is_thing;
            }

        }
    }
}
